# Some utility functions

from WtfEngine import *

def getMM():
	return MemoryManager.GetInst();

def getDM():
	return DataManager.GetInst();
	
def getKernel():
	return Kernel.GetInst();

def getState():
	return Kernel.GetInst().GetGameState();

def insertPhysical(obj):
	PhysicsEngine.GetInst().PushPhysical(obj);
	Renderer.GetInst().PushObject(obj);
	ObjectUpdater.GetInst().PushObject(obj);

class StaticM:
    def __init__(self, anycallable):
        self.__call__ = anycallable